/**
 * 
 */
package com.dalonedrow.engine.ui.base.menu;

import java.util.ArrayList;

import com.dalonedrow.engine.sprite.base.SimpleDimension;
import com.dalonedrow.engine.sprite.base.SimpleRectangle;
import com.dalonedrow.engine.sprite.base.SpriteBase;
import com.dalonedrow.engine.systems.base.Action;
import com.dalonedrow.engine.ui.base.GuiSelectable;
import com.dalonedrow.engine.ui.impl.Button;

/**
 * @author Donald
 */
public final class MenuItem extends Button implements GuiSelectable {
	/**
	 * the length of a side of the triangle that displays when the item is
	 * highlighted.
	 */
	public static final int		HIGHLIGHT_LENGTH	= 8;
	/** the list of actions to perform when the item is selected. */
	private ArrayList<Action>	actions				= new ArrayList<Action>();
	/** the highlight rendered when the item is highlighted. */
	private SpriteBase				highlight;
	/** flag indicating whether the <code>MenuItem</code> is highlighted. */
	private boolean				highlighted			= false;
	/** the <code>MenuItem</code>'s hotspot. */
	private SimpleRectangle	hotspot;
	/** the <code>MenuItem</code>'s preferred size. */
	private SimpleDimension			preferredSize;
	/** the highlight rendered when the item is selected. */
	private SpriteBase				select;
	/** flag indicating whether the <code>Button</code> is selected. */
	private boolean				selected			= false;
	/**
	 * Creates a new instance of MenuItem.java.
	 * @param newFont the name of the {@link GameFont} used
	 * @param newText the text displayed
	 */
	public MenuItem(final String newFont, final String newText) {
		super(newFont, newText);
	}
	/**
	 * {@inheritDoc}
	 */
	@Override
	public void move() {
		// TODO Auto-generated method stub

	}
	/**
	 * {@inheritDoc}
	 */
	@Override
	public boolean setFocus(final float x, final float y) {
		// TODO Auto-generated method stub
		return false;
	}
	/**
	 * {@inheritDoc}
	 */
	@Override
	public void setHighlightable(final boolean isHighlightable) {
		// TODO Auto-generated method stub

	}
	/**
	 * {@inheritDoc}
	 */
	@Override
	public void setHotSpot(final SimpleRectangle value) {
		hotspot = value;
	}
	/**
	 * {@inheritDoc}
	 */
	@Override
	public void setSelectable(final boolean isSelectable) {
		// TODO Auto-generated method stub

	}
}
